package com.xuecheng.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询结果
 *
 * @author xn
 * @date 2023/04/22
 */
@Schema(description = "分页查询结果")
@Data
@AllArgsConstructor
public class PageResult<T> implements Serializable {
    @Schema(description = "数据列表")
    private List<T> items;
    @Schema(description = "总记录数")
    private long counts;
    @Schema(description = "当前页码")
    private long page;
    @Schema(description = "每页记录数")
    private long pageSize;
}
